import  {useState} from 'react';
export const useReferesh = () => {
    const [ary] = useState(() =>(['react', 'vue', 'angular']));
    const forceUpdate = (updateKey) => {
        if(updateKey) {
            alert(`更新key对应的组件${updateKey}`);
        }
    }
    return forceUpdate;
}